# class Foo(object):
#     pass
#
# obj = Foo()
# obj['key'] = 12124 # __setitem__() 会默认去调用这个方法

# 类 继承了 字典
class Foo(dict):
    pass

obj = Foo()


"""
session 请求流程

1. 请求刚刚到达
    ctx = RequestContext(...)
        - request
        - session = None
    ctx.push()
        ctx.session = SecureCookieSessionInterface.open_session
        
2. 视图函数

3. 结束请求
    SecureCookieSessionInterface.save_session()
"""